local _G = _G
local EVENTS = {
    "TRANSMOG_COLLECTION_SOURCE_ADDED", --已添加收藏中
    "TRANSMOG_COLLECTION_SOURCE_REMOVED", --从收藏中已删除
}
local inventorySlotsMap = {
    [HEAD] = { 1 },
    [SHOULDER] = { 3 },
    [BODY] = { 4 },
    [CHEST] = { 5 },
    [ROBE] = { 5 },
    [WAIST] = { 6 },
    [LEGS] = { 7 },
    [FEET] = { 8 },
    [WRIST] = { 9 },
    [HAND] = { 10 },
    [CLOAK] = { 15 },
    [WEAPON] = { 16, 17 },
    [SHIELD] = { 17 },
    [WEAPON_2HAND] = { 16, 17 },
    [WEAPON_MAIN_HAND] = { 16 },
    [RANGED] = { 16 },
    [RANGED_RIGHT] = { 16 },
    [WEAPON_OFF_HAND] = { 17 },
    [HOLDABLE] = { 17 },
    [TABARD] = { 19 },
}

local rad, cos, sin, sqrt, max, min = math.rad, math.cos, math.sin, math.sqrt, math.max, math.min